package com.java.userservice.domain;

import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * 自定义用户信息类
 *
 * @author Wu Qingzhuang
 */
public class CustomUserDetails extends org.springframework.security.core.userdetails.User {

    private User user;

    public CustomUserDetails(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}